package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_topic")
public class Topic {
    @TableId(value = "id", type = IdType.AUTO)
    private String id;//用户id

    @TableField(value = "name")
    private String name; //试卷名称

    @TableField(value = "cover")
    private String cover; //封面图片

    @TableField(value = "star")
    private String star; //星星个数

    @TableField(value = "level")
    private String level; //难度级别

    @TableField(value = "create_user")
    private String createUser; //创建人

    @TableField(value = "create_time")
    private LocalDateTime createTime; //创建时间

    @TableField(value = "update_user")
    private String updateUser;//修改人

    @TableField(value = "update_time")
    private LocalDateTime updateTime;//修改时间

    @TableField(value = "dr")
    private String dr;//是否删除
}
